package com.shop.feign.impl;

import com.shop.feign.CouponFeign;
import com.shop.to.SkuByReductionTo;
import com.shop.to.SpuByBoundsTo;
import com.shop.utils.R;
import org.springframework.stereotype.Component;

@Component
public class CouponFeignImpl implements CouponFeign {
    /*
     * @Description  远程调用优惠系统里的设置spu积分设置的调用失败进行的处理
     * @param spuByBoundsTo
     * @return com.shop.utils.R
     * @author liusupeng
     * @date 2020/11/6 9:07
     */
    @Override
    public R saveBoundsBySpu(SpuByBoundsTo spuByBoundsTo) {

        return R.error(500,"服务调用失败");
    }
    /*
     * @Description  远程调用sku优惠时失败进行的处理
     * @param skuByReductionTo
     * @return com.shop.utils.R
     * @author liusupeng
     * @date 2020/11/7 14:56
     */
    @Override
    public R addReduction(SkuByReductionTo skuByReductionTo) {

        return R.error(500,"服务调用失败");
    }
}
